/* 设备列表容器 */
.device-list-container {
  width: 100%;
}

/* 设备列表头部 */
.device-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
}

/* 设备列表工具栏 */
.device-list-toolbar {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 8px;
}

/* 设备列表内容 */
.device-list-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
}

/* 设备表格 */
.device-table {
  border-radius: 8px;
  overflow: hidden;
}

.device-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.device-table .ant-table-tbody > tr:hover > td {
  background-color: #f5f5f5;
}

.device-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid #f0f0f0;
}

/* 设备详情样式 */
.device-detail {
  padding: 16px 0;
}

.detail-row {
  display: flex;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  width: 120px;
  font-weight: 500;
  color: #666;
  flex-shrink: 0;
}

.detail-value {
  flex: 1;
  color: #333;
}

/* 筛选器样式 */
.filter-item {
  margin-bottom: 16px;
}

.filter-item:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #666;
}

/* 错误信息 */
.error-message {
  margin-top: 16px;
  padding: 12px;
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  color: #cf1322;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .device-list-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-left {
    margin-bottom: 16px;
  }
  
  .header-right {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .device-list-toolbar {
    padding: 12px;
  }
  
  .device-list-content {
    padding: 12px;
  }
  
  .detail-row {
    flex-direction: column;
  }
  
  .detail-label {
    width: 100%;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 18px;
  }
  
  .header-right .ant-btn {
    margin-bottom: 8px;
  }
}